module.exports = {
    devServer: {
        proxy: {
            '/api': {
                target: 'http://shoph5.royao.net/',
                // target: 'http://192.168.14.231:8000/',
                ws: true,
                changeOrigin: true
            },
            '/images':  {
                target: 'http://shoph5.royao.net/images/',
                // target: 'http://192.168.14.231/images/',
                ws: true,
                changeOrigin: true,
                pathRewrite: {'^/images': ''} // pathRewrite 来重写地址
            }
        }
    },
    publicPath: '/shop/',
    css: {
        loaderOptions: {
            less: {
                modifyVars: {
                    //https://github.com/youzan/vant/blob/dev/packages/style/var.less
                    //Button
                    'button-primary-color': '#fff',
                    'button-primary-background-color': '#d81a26',
                    'button-primary-border-color': '#d81a26',

                    //NavBar
                    'nav-bar-text-color': '#333333',
                    'nav-bar-icon-color': '#333333',
                    
                    //switch
                    'switch-on-background-color': '#f44',

                    //checkBox
                    'checkbox-border-color': '#999'
                }
            }
        }
    }
};